package com.azdebugit.redisThreadLocal.test;

/**
 * @Author: itdebug
 * @Email: itdebug.fp@cosmos.com
 * @version:: design_pattern_and_otherutils
 * @description:
 * @create: 2021/12/19 0:57.
 */
public class PublicResultConstant {
    public static final String USER_INFO_ = "098765123";

    public static enum UNAUTHORIZED {
        result("PROSTA", "产品状态"),
        msg("COUNTRY", "国家");

        private UNAUTHORIZED(String value, String name) {
            this.value = value;
            this.name = name;
        }

        private final String value;
        private final String name;

        public String getValue() {
            return value;
        }

        public String getName() {
            return name;
        }
    }

    public static enum INVALID_PARAM_EMPTY {
        result("PROSTA", "产品状态"),
        msg("COUNTRY", "国家");

        private INVALID_PARAM_EMPTY(String value, String name) {
            this.value = value;
            this.name = name;
        }

        private final String value;
        private final String name;

        public String getValue() {
            return value;
        }

        public String getName() {
            return name;
        }
    }

    public static enum PARAM_ERROR {
        result("PROSTA", "产品状态"),
        /*msg("COUNTRY", "国家")*/;

        private PARAM_ERROR(String value, String msg) {
            this.value = value;
            this.msg = msg;
        }

        private final String value;
        private final String msg;

        public String getValue() {
            return value;
        }

        public  String getMsg() {
            return msg;
        }
    }
}
